import request from '@/utils/request'
import path from 'path'


// 查询ct文件列表
export function listCt(query) {
  return request({
    url: '/coronary/ct/list',
    method: 'get',
    params: query
  })
}

// 查询ct文件详细
export function getCt(ctId) {
  return request({
    url: '/coronary/ct/' + ctId,
    method: 'get'
  })
}

// 新增ct文件
export function addCt(data) {
  return request({
    url: '/coronary/ct',
    method: 'post',
    data: data
  })
}

// 修改ct文件
export function updateCt(data) {
  return request({
    url: '/coronary/ct',
    method: 'put',
    data: data
  })
}

// 删除ct文件
export function delCt(ctId) {
  return request({
    url: '/coronary/ct/' + ctId,
    method: 'delete'
  })
}

export function testPath(){


  console.log(path.resolve(__dirname))
}
